﻿using Equipment.Domain;
using Equipment.Domain.Detection_method;
using Equipment.Domain.Detectionmethod;
using Equipment.Domain.Outgoinginspectionfolder;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Equipment.Infrastructure
{
    public class ApplicationContext : DbContext
    {
        public ApplicationContext(DbContextOptions options) : base(options)
        {

            
        }

        public DbSet<Inspectiondepartment> Inspectiondepartment { get; set; }

        public DbSet<Outgoinginspection> Outgoinginspection { get; set; }

        public DbSet<Inspectors> Inspectors { get; set; }

        public DbSet<Shipmentinspectionproducts> Shipmentinspectionproducts { get; set; }
        /// <summary>
        /// 检测工具
        /// </summary>
        public DbSet<Detectiontools> Detectiontools { get; set; }
        /// <summary>
        /// 检测类型
        /// </summary>

        public DbSet<Detectiontype> Detectiontype { get; set; }
        /// <summary>
        /// 检测项目
        /// </summary>

        public DbSet<Testitem> Testitem { get; set; }
        /// <summary>
        /// 常见缺陷
        /// </summary>

        public DbSet<Commondefect> Commondefect { get; set; }
        /// <summary>
        /// 缺陷等级
        /// </summary>
        public DbSet<Defectgrade> Defectgrade { get; set; }
        /// <summary>
        /// 缺陷位置
        /// </summary>
        public DbSet<Defectlocation> Defectlocationa { get; set; }
        /// <summary>
        /// 缺陷类型
        /// </summary>
        public DbSet<Defecttype> Defecttype { get; set; }




    }
}
